import request from '@/utils/request'

// 创建危险作业票安全措施配置
export function createLicenceSafeMeasuresSetting(data) {
  return request({
    url: '/biz/licence-safe-measures-setting/create',
    method: 'post',
    data: data
  })
}

// 更新危险作业票安全措施配置
export function updateLicenceSafeMeasuresSetting(data) {
  return request({
    url: '/biz/licence-safe-measures-setting/update',
    method: 'put',
    data: data
  })
}

// 删除危险作业票安全措施配置
export function deleteLicenceSafeMeasuresSetting(id) {
  return request({
    url: '/biz/licence-safe-measures-setting/delete?id=' + id,
    method: 'delete'
  })
}

// 获得危险作业票安全措施配置
export function getLicenceSafeMeasuresSetting(id) {
  return request({
    url: '/biz/licence-safe-measures-setting/get?id=' + id,
    method: 'get'
  })
}

// 获得危险作业票安全措施配置分页
export function getLicenceSafeMeasuresSettingPage(query) {
  return request({
    url: '/biz/licence-safe-measures-setting/page',
    method: 'get',
    params: query
  })
}

// 导出危险作业票安全措施配置 Excel
export function exportLicenceSafeMeasuresSettingExcel(query) {
  return request({
    url: '/biz/licence-safe-measures-setting/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
